home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000037_news@newsmaster….columbia.edu _Tue Dec 22 23:08:43 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  8KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id XAA21336
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Dec 1998 23:08:43 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id XAA27783
  7.     for kermit.misc@watsun; Tue, 22 Dec 1998 23:08:42 -0500 (EST)
  8. Path: news.columbia.edu!panix!logbridge.uoregon.edu!su-news-hub1.bbnplanet.com!news.gtei.net!news.central.agis.net!agis!news1.alltel.net!not-for-mail
  9. From: moiaussi <moiaussi@conwaycorp.net>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: automation script calling external protocol (Zmodem)
  12. Date: Tue, 22 Dec 1998 20:08:33 -0600
  13. Organization: ALLTEL Internet Services
  14. Lines: 176
  15. Message-ID: <368050A1.6BAA0CC5@conwaycorp.net>
  16. References: <367FD6BF.1B4D30FD@acxiom.com> <75olvt$c6l$1@apakabar.cc.columbia.edu>
  17. NNTP-Posting-Host: 166.102.19.201
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Trace: news1.alltel.net 914386118 4038 166.102.19.201 (23 Dec 1998 04:08:38 GMT)
  22. X-Complaints-To: abuse@client.alltel.net
  23. NNTP-Posting-Date: 23 Dec 1998 04:08:38 GMT
  24. To: Jeffrey Altman <jaltman@watsun.cc.columbia.edu>
  25. X-Mailer: Mozilla 4.5 [en] (Win98; I)
  26. X-Accept-Language: en
  27. Xref: news.columbia.edu comp.protocols.kermit.misc:9669
  28.  
  29. Jeffrey,
  30. In response to the following questions:
  31.  
  32. Q: When do you start the Zmodem transfer in this script?
  33. A:  input 5 protocol?  (Wildcat requet protocol type)
  34.      output z\13         ( response = z (zmodem))
  35. Q: where is the SET PROTOCOL ZMODEM and RECEIVE commands?
  36. A: In the .mykermrc file, the following sets protocol.
  37.     set protocol zmodem crb crz {csb %s} {csz %s} crb crz
  38.     And the receive command is innitiated from the prompt. i.e. "kermit -r"
  39.  
  40.     The command "kermit -r" runs and the .mykermrc executes the following:
  41.     log session (creates a session log)
  42.     dial wildcat (the dial list has one phone #)
  43.     take wildcat (the script to automatically download the file specified).
  44.  
  45.     the wildcat.ksc script will download the file when the letter "z" is
  46. receieved
  47.     from the wildcat.ksc script but note, the following command still remain in
  48.     the script:
  49.   1 : input 60 continue?   (waiting for the continue prompt)
  50.   2: output \13              (return)
  51.   3: input 5 uit?             (waiting for the quit prompt)
  52.   4: output q\13             (type q and return)
  53.   5: input 5 command >>  (waiting for command prompt)
  54.   6: output g\13             (type g and return to say goodbye)
  55.   7: input /n]?                (are you sure you want to log of prompt)
  56.   8: output y\13              (type y to exit)
  57.     So the script bypasses lines 1-8 and when it completes execution of lines
  58. 1-8, the
  59.      "kermit -r" begins execution, but now it is out of sync since it is after
  60. the final prompts
  61.     have been executed.  see below:
  62.  
  63.     RESULT:
  64.  28. output g\13                    ;output using tail -f of session.log
  65.  29. input 5 /n]?                     ; " "
  66.  30. output y\13                    ; " "
  67. 100. end                              ; End of UNIX section
  68. 692.  ; completes .mykermrc statements
  69. 693. ; Finish up with traditional greeting.
  70. 694.
  71. 695. if < \v(ntime) 43200 echo Good Morning!
  72. 696.   else if < \v(ntime) 61200 echo Good Afternoon!
  73. 697.   else echo Good Evening.
  74. Good Evening.
  75. 698.
  76. 699. End ; of C-Kermit 6.0 initialization file.; last statment in .mykermrc
  77. Incoming: reggie.txt 26676 bytes    ; now it begins the download procedure
  78.       0 ZMODEM CRC-32
  79.    1024 ZMODEM CRC-32
  80.    2048 ZMODEM CRC-32
  81.    3072 ZMODEM CRC-32
  82.    4096 ZMODEM CRC-32
  83.    5120 ZMODEM CRC-32
  84. crz 1.00 07-23-98 finished.            ; completes the download
  85.  
  86.  
  87. Press [ENTER] to continue? +++    ; hang-up the modem (return to unix prompt)
  88. OK
  89. So the script has run somewhat out of sync.  The script should allow me to type
  90. "g"
  91. for goodbye before it hangs up, but as soon as it begins the zmodem download,
  92. there
  93. is no return to the calling wildcat.ksc script.  Executing the download portion
  94. using z for zmodem causes the script to be run out of sequence.
  95.  
  96. Here are the set commands in the .mykermrc init file:
  97. set delay 1                            ; I escape back quickly
  98. set dial display on                  ; I like to watch C-Kermit dial
  99. set modem sportster               ; modem type
  100. set line /dev/term/00m            ; line set
  101. set flow-control none
  102. set modem compression on
  103. set modem error-correction on
  104. set protocol zmodem crb crz {csb %s} {csz %s} crb crz
  105. set speed 38400
  106. set term bytesize 8
  107. set command bytesize 8
  108. set parity none
  109. set term download on
  110. set take echo on
  111.  
  112. I work with William, and hope this helps to further debug the script mis-sync
  113. upon download using zmodem.  thanks,
  114.  
  115.  
  116. reggie wanza
  117.  
  118. Jeffrey Altman wrote:
  119.  
  120. > In article <367FD6BF.1B4D30FD@acxiom.com>,
  121. > William Jones  <wjones@acxiom.com> wrote:
  122. > : We have run into a problem continuing script  automation after calling
  123. > : the external protocol (i.e., Zmodem). Due to business reasons, we
  124. > : must use the Zmodem protocol on the remote Windows machine
  125. > : running Wildcat BBS.
  126. > :
  127. > : We must automate a process of downloading (and uploading)
  128. > : files to a remote Windows based Wildcat BBS from a UNIX
  129. > : server running SCO Unixware 7.  We are trying to use C-Kermit
  130. > : with kermit automation scripts on the UNIX server. We have
  131. > : purchased   Zmodem from Omen Inc. (crz, csz, etc.) and also
  132. > : two copies of the book "using C-Kermit".  We have built a Kermit
  133. > : script (wildcat.ksc) which works up to a point. We have placed the
  134. > : command to call the kermit scriptin .mykermrc (i.e., take wildcat.ksc);
  135. > : furthermore, we start the process by typing " kermit -nr ". It starts
  136. > : the
  137. > : external protocol download but we can not figure out how to turn
  138. > : control back to the Kermit automation script after the download
  139. > : completes . After the file is downloaded we get a Continue prompt.
  140. > : How do we return control back from the external protocol to kermit?
  141. > :
  142. > : Any advice would be appreciated.  Portions of the  files (session.log,
  143. > : console.log, and wildcat.ksc with p/w zzzzzz'ed out) are pasted below.
  144. > : In summary, how do we switch back to Kermit in the automated scripts
  145. > : after calling the external protocol?
  146. > :
  147. > : Regards,
  148. > :
  149. > : William Jones
  150. > : Database Administrator
  151. > : Finance Business Unit 1
  152. > : E-Mail:  wjones@acxiom.com
  153. > : TEL # :  (501) 336-1363
  154. > : FAX# : (501) 336-3714
  155. > :
  156. > : "Wolves wouldn't succeed if they didn't work as a team,
  157. > :   and when they're not hunting, they play."
  158. > :
  159. > : **********************************
  160. > : *****START OF wildcat.ksh  *****
  161. > : **********************************
  162. > : ;set input timeout quit
  163. > : set input echo off
  164. > : input 30 name?
  165. > : output snowman\13
  166. > : input 30 name?
  167. > : output \13
  168. > : input 30 password?
  169. > : output zzzzzzz\13
  170. > : input 5 command >>
  171. > : output f\13
  172. > : input 5 command >>
  173. > : output  l\13
  174. > : input 5  uit?
  175. > : output  d\13
  176. > : input 5 ?
  177. > : output  reggie.txt\13
  178. > : input 5 ?
  179. > : output \13
  180. > : input 5 command?
  181. > : output d\13
  182. > : input 5 protocol?
  183. > : output z\13
  184. > : input 60 continue?
  185. > : output \13
  186. > : input 5 uit?
  187. > : output q\13
  188. > : input 5 command >>
  189. > : output g\13
  190. > : input 5 n]?
  191. > : output y\13
  192. > :
  193. > : *******************************
  194. > : *****END OF wildcat.ksh  *****
  195. > : *******************************
  196. >
  197. > When do you start the Zmodem transfer in this script?
  198. > where is the SET PROTOCOL ZMODEM and RECEIVE commands?
  199. >
  200. >     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  201. >                  The Kermit Project * Columbia University
  202. >               612 West 115th St #716 * New York, NY * 10025
  203. >   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org
  204.